using System;

namespace GURUCORE.Framework.DataAccess
{
    [System.Diagnostics.DebuggerStepThrough()]
	public class DataConsistencyException : DataAccessException
	{
        /// <summary>
		/// duplicate unique key
		/// </summary>
		public const int ERR_DUPLICATED_UNIQUE_KEY = 1;
		
		/// <summary>
		/// Can not delete parent entity while child entity existing and refering (Eg: delete Country when having City con)
		/// </summary>
		public const int ERR_FOREIGNKEY_CONFLICT = 2;

		/// <summary>
		/// null value is not allow
		/// </summary>
		public const int ERR_NULL_VALUE_VIOLATION = 3;

        		
		public DataConsistencyException(int p_nCode, string p_sMessage) : base(p_sMessage)
		{
			m_nCode = p_nCode;
		}

		
	}
}
